package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.TrainingCoursesPublicDao;
import com.site.wisdom_construction.entity.trainingCheckModule.TrainingCoursesPublic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/17
 * @Description
 */
@Service
public class TrainingCoursesPublicService implements TrainingCoursesPublicDao {
    @Autowired
    private TrainingCoursesPublicDao trainingCoursesPublicDao;

    @Override
    public int insertTrainingCoursesPublic(Map map) {
        return trainingCoursesPublicDao.insertTrainingCoursesPublic(map);
    }

    @Override
    public int deleteTrainingCoursesPublic(Map map) {
        return trainingCoursesPublicDao.deleteTrainingCoursesPublic(map);
    }

    @Override
    public int updateTrainingCoursesPublic(Map map) {
        return trainingCoursesPublicDao.updateTrainingCoursesPublic(map);
    }

    @Override
    public List<TrainingCoursesPublic> findTrainingCoursesPublicByPage(Map map) {
        return trainingCoursesPublicDao.findTrainingCoursesPublicByPage(map);
    }

    @Override
    public long Total(Map map) {
        return trainingCoursesPublicDao.Total(map);
    }
}
